package main

import (
	"flag"
	"service/server"
)

func main() {
	po := flag.Int("port", 8089, "端口")
	notifyHttp := flag.String("notifyHttp", "", "微信通知地址，"+
		"结尾不要加/，格式 协议：域名")
	flag.Parse()
	server.NotifyHttp = *notifyHttp
	ser := server.NewServer(*po, server.Dispatcher())
	ser.Run()
}
